package com.example.service;

import com.example.config.ResponseVO;
import com.example.pojo.Classes;
import com.example.pojo.Homework;
import com.example.pojo.HomeworkDraft;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * @author GovQ
 * @description 针对表【homework_draft】的数据库操作Service
 * @createDate 2024-06-18 16:07:08
 */
public interface HomeworkDraftService {
    // 存草稿
    ResponseEntity<ResponseVO<String>> addHomeworkDraft(Homework homework);

    // 查询该教师是否还有没有发布的作业草稿
    ResponseEntity<ResponseVO<HomeworkDraft>> getHomeworkDraftByTeacherId(Long teacherId);

    // 删除教师的草稿
    ResponseEntity<ResponseVO<String>> deleteHomeworkDraft(HomeworkDraft homeworkDraft);

    // 查询出草稿对应的作业数据
    ResponseEntity<ResponseVO<Homework>> getHomeworkByDraftId(HomeworkDraft homeworkDraft);

    // 查询可以推送的班级
    ResponseEntity<ResponseVO<List<Classes>>> getPushClassByTeacherId(Long teacherId);
}
